#include "ProcessBar.h"


void process_bar()
{
  char bar[NUM];
  const char* label = "|/-\\";
  memset(bar,'\0',sizeof(bar));
  int i = 0;
  while(i <= 100)
  {
    printf("[%-100s][%-3d%%][%c]\r",bar,i,label[i%4]);
    fflush(stdout);
    bar[i++] = '#';
    usleep(30000);
  }
  printf("\n");
}
